<?php
/*
* Author: Nguyen Hai Nam
* Plugin: MenuNews
* Desc	: Introduce pick.vn and sidle pic
* Date	: 12/12/2011
*/
class MenuNewsPlugin extends Pick_Core_Plugin{
	
	function MenuNewsPlugin(){
		parent::Pick_Core_Plugin();
		$this->namePlugin = "menunews";
		$this->descriptionPlugin = "This is menu of news pages";
	}
	public function getContent(){
		
		$newCategories = new Pick_Dao_NewsCategory();
		$objMenus = $newCategories->getObjects(1, " cid=0 ");
		$this->template->assign('newCategories', $newCategories);
		$this->template->assign('objMenus', $objMenus['data']);
		
	}
}